﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class CameraCom : MonoBehaviour
{
    public Transform playerTransform;
    void Start()
    {
        
    }
    public void Init(Transform playerTransform)
    {
        this.playerTransform = playerTransform;
    }

    // Update is called once per frame
    void FixedUpdate()
    {
        if (playerTransform != null)
        {
            transform.position = playerTransform.position;
        }
    }
}
